\hypertarget{classduye_1_1_xml_element}{\section{duye\-:\-:Xml\-Element Class Reference}
\label{classduye_1_1_xml_element}\index{duye\-::\-Xml\-Element@{duye\-::\-Xml\-Element}}
}


The element is a container class. It has a value, the element name, and can contain other elements, text, comments, and unknowns. Elements also contain an arbitrary number of attributes.  




{\ttfamily \#include $<$duye\-\_\-xml.\-h$>$}

Inheritance diagram for duye\-:\-:Xml\-Element\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classduye_1_1_xml_element}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_element_adf1617815e82da7e2601d5ff7c736012}{\hyperlink{classduye_1_1_xml_element_adf1617815e82da7e2601d5ff7c736012}{Xml\-Element} (const char $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_adf1617815e82da7e2601d5ff7c736012}

\begin{DoxyCompactList}\small\item\em Construct an element. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a2d134b76584cb2aab5361d7fc56f20a2}{\hyperlink{classduye_1_1_xml_element_a2d134b76584cb2aab5361d7fc56f20a2}{Xml\-Element} (const std\-::string \&\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_a2d134b76584cb2aab5361d7fc56f20a2}

\begin{DoxyCompactList}\small\item\em std\-::string constructor. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a9115ce592dde3a6649a9890ac78ce486}{{\bfseries Xml\-Element} (const \hyperlink{classduye_1_1_xml_element}{Xml\-Element} \&element)}\label{classduye_1_1_xml_element_a9115ce592dde3a6649a9890ac78ce486}

\item 
\hypertarget{classduye_1_1_xml_element_a5e220e8d5733c1b064ca7a6b6648b2db}{\hyperlink{classduye_1_1_xml_element}{Xml\-Element} \& {\bfseries operator=} (const \hyperlink{classduye_1_1_xml_element}{Xml\-Element} \&base)}\label{classduye_1_1_xml_element_a5e220e8d5733c1b064ca7a6b6648b2db}

\item 
\hypertarget{classduye_1_1_xml_element_aa4d64b161b2ecf31f7af62655f71483d}{const char $\ast$ \hyperlink{classduye_1_1_xml_element_aa4d64b161b2ecf31f7af62655f71483d}{attribute} (const char $\ast$name) const }\label{classduye_1_1_xml_element_aa4d64b161b2ecf31f7af62655f71483d}

\begin{DoxyCompactList}\small\item\em Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a9ec7ffb37485ded381dab6a1f4bae5ba}{const char $\ast$ \hyperlink{classduye_1_1_xml_element_a9ec7ffb37485ded381dab6a1f4bae5ba}{attribute} (const char $\ast$name, int $\ast$i) const }\label{classduye_1_1_xml_element_a9ec7ffb37485ded381dab6a1f4bae5ba}

\begin{DoxyCompactList}\small\item\em Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an integer, the integer value will be put in the return 'i', if 'i' is non-\/null. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a88abd859c3c107b688f72a2b3827196f}{const char $\ast$ \hyperlink{classduye_1_1_xml_element_a88abd859c3c107b688f72a2b3827196f}{attribute} (const char $\ast$name, double $\ast$d) const }\label{classduye_1_1_xml_element_a88abd859c3c107b688f72a2b3827196f}

\begin{DoxyCompactList}\small\item\em Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists. If the attribute exists and can be converted to an double, the double value will be put in the return 'd', if 'd' is non-\/null. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a7e4f2f45cecbfc30708a00dd9b352648}{int \hyperlink{classduye_1_1_xml_element_a7e4f2f45cecbfc30708a00dd9b352648}{query\-Int\-Attribute} (const char $\ast$name, int $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_a7e4f2f45cecbfc30708a00dd9b352648}

\begin{DoxyCompactList}\small\item\em Query\-Int\-Attribute examines the attribute -\/ it is an alternative to the Attribute() method with richer error checking. If the attribute is an integer, it is stored in 'value' and the call returns X\-M\-L\-\_\-\-S\-U\-C\-C\-E\-S\-S. If it is not an integer, it returns X\-M\-L\-\_\-\-W\-R\-O\-N\-G\-\_\-\-T\-Y\-P\-E. If the attribute does not exist, then X\-M\-L\-\_\-\-N\-O\-\_\-\-A\-T\-T\-R\-I\-B\-U\-T\-E is returned. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_ae286f8b28e645399dd32ba0314d1e0d2}{int \hyperlink{classduye_1_1_xml_element_ae286f8b28e645399dd32ba0314d1e0d2}{query\-Unsigned\-Attribute} (const char $\ast$name, unsigned $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_ae286f8b28e645399dd32ba0314d1e0d2}

\begin{DoxyCompactList}\small\item\em Query\-Unsigned\-Attribute examines the attribute -\/ see Query\-Int\-Attribute(). \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a89a227dc21b726d5e3588747db5a12da}{int \hyperlink{classduye_1_1_xml_element_a89a227dc21b726d5e3588747db5a12da}{query\-Bool\-Attribute} (const char $\ast$name, bool $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_a89a227dc21b726d5e3588747db5a12da}

\begin{DoxyCompactList}\small\item\em Query\-Bool\-Attribute examines the attribute -\/ see Query\-Int\-Attribute(). Note that '1', 'true', or 'yes' are considered true, while '0', 'false' and 'no' are considered false. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a773e27af04f91217edaf04f3058ce467}{int \hyperlink{classduye_1_1_xml_element_a773e27af04f91217edaf04f3058ce467}{query\-Double\-Attribute} (const char $\ast$name, double $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_a773e27af04f91217edaf04f3058ce467}

\begin{DoxyCompactList}\small\item\em Query\-Double\-Attribute examines the attribute -\/ see Query\-Int\-Attribute(). \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_ad595d308ef8fe1b8f6ef72288320f252}{int \hyperlink{classduye_1_1_xml_element_ad595d308ef8fe1b8f6ef72288320f252}{query\-Float\-Attribute} (const char $\ast$name, float $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_ad595d308ef8fe1b8f6ef72288320f252}

\begin{DoxyCompactList}\small\item\em Query\-Float\-Attribute examines the attribute -\/ see Query\-Int\-Attribute(). \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a6c76078850bda1e9059fd63417d3bf8a}{int \hyperlink{classduye_1_1_xml_element_a6c76078850bda1e9059fd63417d3bf8a}{query\-String\-Attribute} (const char $\ast$name, std\-::string $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_a6c76078850bda1e9059fd63417d3bf8a}

\begin{DoxyCompactList}\small\item\em Query\-String\-Attribute examines the attribute -\/ see Query\-Int\-Attribute(). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\int \hyperlink{classduye_1_1_xml_element_a13afc8381fa66f00a5e0b370de681d7a}{query\-Value\-Attribute} (const std\-::string \&name, T $\ast$out\-Value) const 
\begin{DoxyCompactList}\small\item\em Template form of the attribute query which will try to read the attribute into the specified type. Very easy, very powerful, but be careful to make sure to call this with the correct type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a7bf678496f78e957554fddc482c80bc1}{int {\bfseries query\-Value\-Attribute} (const std\-::string \&name, std\-::string $\ast$out\-Value) const }\label{classduye_1_1_xml_element_a7bf678496f78e957554fddc482c80bc1}

\item 
\hypertarget{classduye_1_1_xml_element_a628bf1aea52d83e5722e74113538adad}{void \hyperlink{classduye_1_1_xml_element_a628bf1aea52d83e5722e74113538adad}{set\-Attribute} (const char $\ast$name, const char $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_a628bf1aea52d83e5722e74113538adad}

\begin{DoxyCompactList}\small\item\em Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a9b4c84704c317e44be035b9231f4c5b9}{const std\-::string $\ast$ {\bfseries attribute} (const std\-::string \&name) const }\label{classduye_1_1_xml_element_a9b4c84704c317e44be035b9231f4c5b9}

\item 
\hypertarget{classduye_1_1_xml_element_a0b9386cce5c8b9f4452980b2a6040108}{const std\-::string $\ast$ {\bfseries attribute} (const std\-::string \&name, int $\ast$i) const }\label{classduye_1_1_xml_element_a0b9386cce5c8b9f4452980b2a6040108}

\item 
\hypertarget{classduye_1_1_xml_element_aea5d6e95585b09a919b48864c59d71bf}{const std\-::string $\ast$ {\bfseries attribute} (const std\-::string \&name, double $\ast$d) const }\label{classduye_1_1_xml_element_aea5d6e95585b09a919b48864c59d71bf}

\item 
\hypertarget{classduye_1_1_xml_element_a68ffcb0c6697680554dee3d12bc9ccbf}{int {\bfseries query\-Int\-Attribute} (const std\-::string \&name, int $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_a68ffcb0c6697680554dee3d12bc9ccbf}

\item 
\hypertarget{classduye_1_1_xml_element_a59ecd758b8b9b2b0e07185c4f409214e}{int {\bfseries query\-Double\-Attribute} (const std\-::string \&name, double $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value}) const }\label{classduye_1_1_xml_element_a59ecd758b8b9b2b0e07185c4f409214e}

\item 
void \hyperlink{classduye_1_1_xml_element_a773a4e0c2336bc531b80de03e1daf8e1}{set\-Attribute} (const std\-::string \&name, const std\-::string \&\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})
\item 
\hypertarget{classduye_1_1_xml_element_aef61cf39bff6591a42f303c853d7592d}{void \hyperlink{classduye_1_1_xml_element_aef61cf39bff6591a42f303c853d7592d}{set\-Attribute} (const std\-::string \&name, int \hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_aef61cf39bff6591a42f303c853d7592d}

\begin{DoxyCompactList}\small\item\em S\-T\-L std\-::string form. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_acd329b4fd532838290504ad2f118a06e}{void {\bfseries set\-Double\-Attribute} (const std\-::string \&name, double \hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_acd329b4fd532838290504ad2f118a06e}

\item 
\hypertarget{classduye_1_1_xml_element_a1c247af944048eaadc3035553e5433d2}{void \hyperlink{classduye_1_1_xml_element_a1c247af944048eaadc3035553e5433d2}{set\-Attribute} (const char $\ast$name, int \hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_a1c247af944048eaadc3035553e5433d2}

\begin{DoxyCompactList}\small\item\em Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_ad546041af18ff98da6719859af37e73d}{void \hyperlink{classduye_1_1_xml_element_ad546041af18ff98da6719859af37e73d}{set\-Double\-Attribute} (const char $\ast$name, double \hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_ad546041af18ff98da6719859af37e73d}

\begin{DoxyCompactList}\small\item\em Sets an attribute of name to a given value. The attribute will be created if it does not exist, or changed if it does. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_abb9a5a054683996931db129475d1d721}{void \hyperlink{classduye_1_1_xml_element_abb9a5a054683996931db129475d1d721}{remove\-Attribute} (const char $\ast$name)}\label{classduye_1_1_xml_element_abb9a5a054683996931db129475d1d721}

\begin{DoxyCompactList}\small\item\em Deletes an attribute with the given name. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_ad77d3ca35ab85229fd683e83f19b939d}{void {\bfseries remove\-Attribute} (const std\-::string \&name)}\label{classduye_1_1_xml_element_ad77d3ca35ab85229fd683e83f19b939d}

\item 
\hypertarget{classduye_1_1_xml_element_af3f8e317ba51fc544285d4e8174d35e5}{const \hyperlink{classduye_1_1_xml_attribute}{Xml\-Attribute} $\ast$ {\bfseries first\-Attribute} () const }\label{classduye_1_1_xml_element_af3f8e317ba51fc544285d4e8174d35e5}

\item 
\hypertarget{classduye_1_1_xml_element_a853908056d2b08632d493c884412333d}{\hyperlink{classduye_1_1_xml_attribute}{Xml\-Attribute} $\ast$ {\bfseries first\-Attribute} ()}\label{classduye_1_1_xml_element_a853908056d2b08632d493c884412333d}

\item 
\hypertarget{classduye_1_1_xml_element_a44124899b4620e8887aa31c2e74ecd09}{const \hyperlink{classduye_1_1_xml_attribute}{Xml\-Attribute} $\ast$ {\bfseries last\-Attribute} () const }\label{classduye_1_1_xml_element_a44124899b4620e8887aa31c2e74ecd09}

\item 
\hypertarget{classduye_1_1_xml_element_adefacbfb53dd73d4254404a91de9ac47}{\hyperlink{classduye_1_1_xml_attribute}{Xml\-Attribute} $\ast$ {\bfseries last\-Attribute} ()}\label{classduye_1_1_xml_element_adefacbfb53dd73d4254404a91de9ac47}

\item 
const char $\ast$ \hyperlink{classduye_1_1_xml_element_a688496480e193f6375230eea3493e02a}{get\-Text} () const 
\begin{DoxyCompactList}\small\item\em Convenience function for easy access to the text inside an element. Although easy and concise, Get\-Text() is limited compared to getting the \hyperlink{classduye_1_1_xml_text}{Xml\-Text} child and accessing it directly. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a82c3b7e60a1d9a88d50694b2bebea20c}{void {\bfseries set\-Text} (const char $\ast$\hyperlink{classduye_1_1_xml_node_a6382aca61aaacf168916b9a8d917dc47}{value})}\label{classduye_1_1_xml_element_a82c3b7e60a1d9a88d50694b2bebea20c}

\item 
\hypertarget{classduye_1_1_xml_element_a291cde29d8ec9051fb13bf23666d5c1f}{virtual \hyperlink{classduye_1_1_xml_node}{Xml\-Node} $\ast$ \hyperlink{classduye_1_1_xml_element_a291cde29d8ec9051fb13bf23666d5c1f}{clone} () const }\label{classduye_1_1_xml_element_a291cde29d8ec9051fb13bf23666d5c1f}

\begin{DoxyCompactList}\small\item\em Creates a new Element and returns it -\/ the returned element is a copy. \end{DoxyCompactList}\item 
virtual void \hyperlink{classduye_1_1_xml_element_a046112fa85b80dd1c09546dda19afe42}{print} (F\-I\-L\-E $\ast$cfile, int depth) const 
\begin{DoxyCompactList}\small\item\em All Gny\-Xml classes can print themselves to a filestream or the string class (G\-Xml\-String in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a1e9e8db667ee06e62b1cd2a829bda295}{virtual void {\bfseries xml\-To\-Str} (std\-::string \&out\-Xml, int depth) const }\label{classduye_1_1_xml_element_a1e9e8db667ee06e62b1cd2a829bda295}

\item 
\hypertarget{classduye_1_1_xml_element_a1016d8ab33cfaaba6b9388369cc71912}{virtual const char $\ast$ \hyperlink{classduye_1_1_xml_element_a1016d8ab33cfaaba6b9388369cc71912}{parse} (const char $\ast$p, Xml\-Parsing\-Data $\ast$data, Xml\-Encoding encoding)}\label{classduye_1_1_xml_element_a1016d8ab33cfaaba6b9388369cc71912}

\begin{DoxyCompactList}\small\item\em Attribtue parsing starts\-: next char past '$<$' returns\-: next char past '$>$'. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a1719b57e55e758658651eb562c81f4ca}{virtual const \hyperlink{classduye_1_1_xml_element}{Xml\-Element} $\ast$ \hyperlink{classduye_1_1_xml_element_a1719b57e55e758658651eb562c81f4ca}{to\-Element} () const }\label{classduye_1_1_xml_element_a1719b57e55e758658651eb562c81f4ca}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_a728b7fadc8cfa7796a26cc3477067964}{virtual \hyperlink{classduye_1_1_xml_element}{Xml\-Element} $\ast$ \hyperlink{classduye_1_1_xml_element_a728b7fadc8cfa7796a26cc3477067964}{to\-Element} ()}\label{classduye_1_1_xml_element_a728b7fadc8cfa7796a26cc3477067964}

\begin{DoxyCompactList}\small\item\em Cast to a more defined type. Will return null not of the requested type. \end{DoxyCompactList}\item 
\hypertarget{classduye_1_1_xml_element_ac383656d5d467642783681a4401a5ecb}{virtual bool \hyperlink{classduye_1_1_xml_element_ac383656d5d467642783681a4401a5ecb}{accept} (\hyperlink{classduye_1_1_xml_visitor}{Xml\-Visitor} $\ast$visitor) const }\label{classduye_1_1_xml_element_ac383656d5d467642783681a4401a5ecb}

\begin{DoxyCompactList}\small\item\em Walk the X\-M\-L tree visiting this node and all of its children. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classduye_1_1_xml_element_a34699e9221ef78f3947c69180efb7e0e}{void {\bfseries copy\-To} (\hyperlink{classduye_1_1_xml_element}{Xml\-Element} $\ast$target) const }\label{classduye_1_1_xml_element_a34699e9221ef78f3947c69180efb7e0e}

\item 
\hypertarget{classduye_1_1_xml_element_a596bae31691f6191e2a8fdceb8470e43}{void {\bfseries clear\-This} ()}\label{classduye_1_1_xml_element_a596bae31691f6191e2a8fdceb8470e43}

\item 
\hypertarget{classduye_1_1_xml_element_a595519b7678e801ecdd924b195d289c7}{virtual void {\bfseries stream\-In} (std\-::istream $\ast$in, std\-::string $\ast$tag)}\label{classduye_1_1_xml_element_a595519b7678e801ecdd924b195d289c7}

\item 
\hypertarget{classduye_1_1_xml_element_aa98cef8154f2d236a446a7977dcbc7a3}{const char $\ast$ \hyperlink{classduye_1_1_xml_element_aa98cef8154f2d236a446a7977dcbc7a3}{read\-Value} (const char $\ast$in, Xml\-Parsing\-Data $\ast$prev\-Data, Xml\-Encoding encoding)}\label{classduye_1_1_xml_element_aa98cef8154f2d236a446a7977dcbc7a3}

\begin{DoxyCompactList}\small\item\em \mbox{[}internal use\mbox{]} Reads the \char`\"{}value\char`\"{} of the element -- another element, or text. This should terminate with the current end tag. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
The element is a container class. It has a value, the element name, and can contain other elements, text, comments, and unknowns. Elements also contain an arbitrary number of attributes. 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_xml_element_a688496480e193f6375230eea3493e02a}{\index{duye\-::\-Xml\-Element@{duye\-::\-Xml\-Element}!get\-Text@{get\-Text}}
\index{get\-Text@{get\-Text}!duye::XmlElement@{duye\-::\-Xml\-Element}}
\subsubsection[{get\-Text}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ duye\-::\-Xml\-Element\-::get\-Text (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}\label{classduye_1_1_xml_element_a688496480e193f6375230eea3493e02a}


Convenience function for easy access to the text inside an element. Although easy and concise, Get\-Text() is limited compared to getting the \hyperlink{classduye_1_1_xml_text}{Xml\-Text} child and accessing it directly. 

If the first child of 'this' is a \hyperlink{classduye_1_1_xml_text}{Xml\-Text}, the Get\-Text() returns the character string of the Text node, else null is returned.

This is a convenient method for getting the text of simple contained text\-: \begin{DoxyVerb}* <foo>This is text</foo>
* const char* str = fooElement->GetText();
* \end{DoxyVerb}


'str' will be a pointer to \char`\"{}\-This is text\char`\"{}.

Note that this function can be misleading. If the element foo was created from this X\-M\-L\-: \begin{DoxyVerb}* <foo><b>This is text</b></foo> 
* \end{DoxyVerb}


then the value of str would be null. The first child node isn't a text node, it is another element. From this X\-M\-L\-: \begin{DoxyVerb}* <foo>This is <b>text</b></foo> 
* \end{DoxyVerb}
 Get\-Text() will return \char`\"{}\-This is \char`\"{}.

W\-A\-R\-N\-I\-N\-G\-: Get\-Text() accesses a child node -\/ don't become confused with the similarly named G\-Xml\-Handle\-::\-Text() and Xml\-Node\-::\-To\-Text() which are safe type casts on the referenced node. \hypertarget{classduye_1_1_xml_element_a046112fa85b80dd1c09546dda19afe42}{\index{duye\-::\-Xml\-Element@{duye\-::\-Xml\-Element}!print@{print}}
\index{print@{print}!duye::XmlElement@{duye\-::\-Xml\-Element}}
\subsubsection[{print}]{\setlength{\rightskip}{0pt plus 5cm}virtual void duye\-::\-Xml\-Element\-::print (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{cfile, }
\item[{int}]{depth}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{classduye_1_1_xml_element_a046112fa85b80dd1c09546dda19afe42}


All Gny\-Xml classes can print themselves to a filestream or the string class (G\-Xml\-String in non-\/\-S\-T\-L mode, std\-::string in S\-T\-L mode.) Either or both cfile and str can be null. 

This is a formatted print, and will insert tabs and newlines.

(For an unformatted stream, use the $<$$<$ operator.) 

Implements \hyperlink{classduye_1_1_xml_base_aeb28d8aeec84aad3ce290c6cc3a5ec06}{duye\-::\-Xml\-Base}.

\hypertarget{classduye_1_1_xml_element_a13afc8381fa66f00a5e0b370de681d7a}{\index{duye\-::\-Xml\-Element@{duye\-::\-Xml\-Element}!query\-Value\-Attribute@{query\-Value\-Attribute}}
\index{query\-Value\-Attribute@{query\-Value\-Attribute}!duye::XmlElement@{duye\-::\-Xml\-Element}}
\subsubsection[{query\-Value\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T $>$ int duye\-::\-Xml\-Element\-::query\-Value\-Attribute (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name, }
\item[{T $\ast$}]{out\-Value}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classduye_1_1_xml_element_a13afc8381fa66f00a5e0b370de681d7a}


Template form of the attribute query which will try to read the attribute into the specified type. Very easy, very powerful, but be careful to make sure to call this with the correct type. 

N\-O\-T\-E\-: This method doesn't work correctly for 'string' types that contain spaces.

\begin{DoxyReturn}{Returns}
X\-M\-L\-\_\-\-S\-U\-C\-C\-E\-S\-S, X\-M\-L\-\_\-\-W\-R\-O\-N\-G\-\_\-\-T\-Y\-P\-E, or X\-M\-L\-\_\-\-N\-O\-\_\-\-A\-T\-T\-R\-I\-B\-U\-T\-E 
\end{DoxyReturn}
\hypertarget{classduye_1_1_xml_element_a773a4e0c2336bc531b80de03e1daf8e1}{\index{duye\-::\-Xml\-Element@{duye\-::\-Xml\-Element}!set\-Attribute@{set\-Attribute}}
\index{set\-Attribute@{set\-Attribute}!duye::XmlElement@{duye\-::\-Xml\-Element}}
\subsubsection[{set\-Attribute}]{\setlength{\rightskip}{0pt plus 5cm}void duye\-::\-Xml\-Element\-::set\-Attribute (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{name, }
\item[{const std\-::string \&}]{value}
\end{DoxyParamCaption}
)}}\label{classduye_1_1_xml_element_a773a4e0c2336bc531b80de03e1daf8e1}
S\-T\-L std\-::string form. 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/utils/duye\-\_\-xml.\-h\end{DoxyCompactItemize}
